package com.larry.isn;

import java.util.List;

import com.pegatron.ers.logging.Checkin;
import com.pegatron.ers.logging.route.SfisQueryRoute;
import com.pegatron.ers.server.app.service.common.IProductService;
import com.pegatron.ers.vo.product.ProductConfig;

@Deprecated
public class MainDBSearcher extends Thread {

	private List<String> list;

	private IProductService pService;

	private ProductConfig config;

	public MainDBSearcher(List<String> list, IProductService pService, ProductConfig config) {
		this.list = list;
		this.pService = pService;
		this.config = config;
	}

	@Override
	public void run() {
		config.setRetreiverAsWebService(false);
		for (String serialNr : list) {
			pService.getProduct(serialNr, config, new Checkin(new SfisQueryRoute()), true);
		}
	}
}
